<!DOCTYPE html>
<html lang="en">

<head>
    <meta>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>Document</title>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="./js/store.legacy.min.js"></script>
</head>

<body>
    <h1>递归</h1>
    <script type="text/javascript">
    function dg(n) {
        console.log(n);
        try {
            n === 10
            return '已经极限了！！！！';
        } catch (e) {
            return dg(n + 1);
        }
    }

    var oMsg = dg(0);

    console.log(oMsg);
    </script>
</body>

</html>
